package com.yc.cloud.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yc.cloud.common.model.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author 杨智杰
 * @since 2021/8/17 15:14
 */
@Data
@TableName("sys_menu")
@Accessors(chain = true)
public class SysMenu extends BaseEntity {

    @TableField("pid")
    @ApiModelProperty(value = "上级菜单Id")
    private Long pid;

    @TableField("name")
    @ApiModelProperty(value = "菜单名")
    private String name;

    @TableField("path")
    @ApiModelProperty(value = "路由地址")
    private String path;

    @TableField("icon")
    @ApiModelProperty(value = "图标")
    private String icon;

    @TableField("type")
    @ApiModelProperty(value = "类型")
    private Integer type;

    @TableField("auth_str")
    @ApiModelProperty(value = "权限字符")
    private String authStr;

    @TableField("is_hide")
    @ApiModelProperty(value = "是否隐藏")
    private Boolean isHide;

    @TableField("status")
    @ApiModelProperty(value = "当前状态")
    private Integer status;

    @TableField("sort")
    @ApiModelProperty(value = "排序")
    private Integer sort;

    @TableField("link")
    @ApiModelProperty(value = "外链地址")
    private String link;
}
